package com.yiwei.jmx.api.model;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;
import com.yiwei.jmx.api.bean.ResponModel;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by xsooy-pc on 18-8-29.
 */

public class PrizeIndexModel extends ResponModel {

    /**
     * status : 1
     * msg :
     * data : {"invite_level":"邀请新秀","prize_notice":["获奖通知：恭喜张**获得IPONE X一部","获奖通知：恭喜李**获得三星显示屏一台","获奖通知：恭喜苏**获得Beats solo 3一副"],"invite_list":[{"header":"http://img3.dob500.cn/2017/09/23/201709231418594895.jpg","mobile":"138****2563","name":"邀请好友","text":"昨日清算获得佣金 23 元"},"... ..."],"ads":["http://img3.dianhuohuo.shop/2018/07/26/201807261122171624.jpg"],"week_list":[{"startDate":1532016000,"endDate":1532620800,"number":1}],"statistics":{"total":0,"register":0,"week_ranking":0},"reward_list":[{"header":"http://img3.dob500.cn/2018/07/18/201807181222344904.jpg","real_name":"叶**","mobile":"138****2563","user_id":468,"total_reward":"1.00"},"... ..."],"total_reward_list":[{"header":"http://img3.dob500.cn/2018/07/18/201807181222344904.jpg","real_name":"叶**","mobile":"138****2563","user_id":468,"total_reward":"1.00"},"... ..."],"prize_list":[{"header":"http://img3.dob500.cn/2017/09/23/201709231418594895.jpg","real_name":"叶**","mobile":"138****2563","week_num":1,"ranking":1,"start_times":0,"end_times":0,"goods":"","fstatus":1},"... ..."]}
     */


    public DataBean data;

    public static class DataBean {
        /**
         * invite_level : 邀请新秀
         * prize_notice : ["获奖通知：恭喜张**获得IPONE X一部","获奖通知：恭喜李**获得三星显示屏一台","获奖通知：恭喜苏**获得Beats solo 3一副"]
         * invite_list : [{"header":"http://img3.dob500.cn/2017/09/23/201709231418594895.jpg","mobile":"138****2563","name":"邀请好友","text":"昨日清算获得佣金 23 元"},"... ..."]
         * ads : ["http://img3.dianhuohuo.shop/2018/07/26/201807261122171624.jpg"]
         * week_list : [{"startDate":1532016000,"endDate":1532620800,"number":1}]
         * statistics : {"total":0,"register":0,"week_ranking":0}
         * reward_list : [{"header":"http://img3.dob500.cn/2018/07/18/201807181222344904.jpg","real_name":"叶**","mobile":"138****2563","user_id":468,"total_reward":"1.00"},"... ..."]
         * total_reward_list : [{"header":"http://img3.dob500.cn/2018/07/18/201807181222344904.jpg","real_name":"叶**","mobile":"138****2563","user_id":468,"total_reward":"1.00"},"... ..."]
         * prize_list : [{"header":"http://img3.dob500.cn/2017/09/23/201709231418594895.jpg","real_name":"叶**","mobile":"138****2563","week_num":1,"ranking":1,"start_times":0,"end_times":0,"goods":"","fstatus":1},"... ..."]
         */

        public String invite_level;
        public StatisticsBean statistics;
        public List<String> prize_notice;
        public List<InviteListBean> invite_list;
        public List<String> ads;
        public ArrayList<WeekListBean> week_list;
        public List<PrizeRanksModel.DataBean> reward_list;
        public List<PrizeRanksModel.DataBean> total_reward_list;
        public List<PrizeListBean> prize_list;

        public static class StatisticsBean {
            /**
             * total : 0
             * register : 0
             * week_ranking : 0
             */

            public String total;
            public String register;
            public String week_ranking;
        }

        public static class InviteListBean {
            /**
             * header : http://img3.dob500.cn/2017/09/23/201709231418594895.jpg
             * mobile : 138****2563
             * name : 邀请好友
             * text : 昨日清算获得佣金 23 元
             */

            public String header;
            public String mobile;
            public String name;
            public String text;
        }

        public static class WeekListBean implements Parcelable {
            /**
             * startDate : 1532016000
             * endDate : 1532620800
             * number : 1
             */

            public String startDate;
            public String endDate;
            public String number;

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(this.startDate);
                dest.writeString(this.endDate);
                dest.writeString(this.number);
            }

            public WeekListBean() {
            }

            protected WeekListBean(Parcel in) {
                this.startDate = in.readString();
                this.endDate = in.readString();
                this.number = in.readString();
            }

            public static final Parcelable.Creator<WeekListBean> CREATOR = new Parcelable.Creator<WeekListBean>() {
                @Override
                public WeekListBean createFromParcel(Parcel source) {
                    return new WeekListBean(source);
                }

                @Override
                public WeekListBean[] newArray(int size) {
                    return new WeekListBean[size];
                }
            };
        }


        public static class PrizeListBean {
            /**
             * header : http://img3.dob500.cn/2017/09/23/201709231418594895.jpg
             * real_name : 叶**
             * mobile : 138****2563
             * week_num : 1
             * ranking : 1
             * start_times : 0
             * end_times : 0
             * goods :
             * fstatus : 1
             */

            public String header;
            public String real_name;
            public String mobile;
            public String week_num;
            public String ranking;
            public String start_times;
            public String end_times;
            public String goods;
            public String fstatus;
        }
    }
}
